//
//  BiliBiliCore.swift
//  BiliBiliCore
//
//  Created by 梁先华 on 2021/2/18.
//

import Foundation
let podName = "BiliBiliCore"

public class BiliBiliCore {
    public static var shareInstance: BiliBiliCore {
        struct Static {
            static let instance: BiliBiliCore = BiliBiliCore()
        }
        return Static.instance
    }
    
    public static var bundle: Bundle? {
        get{
            guard let bundleURL = Bundle(for:self).url(forResource: podName, withExtension: "bundle") else {
                
                return nil
            }
            guard let bundle = Bundle(url: bundleURL) else {
                return nil
            }
            return bundle
        }
    }
}
